#ifndef BEZIER_H
#define BEZIER_H

#include <QObject>
#include <QList>
#include <QVector2D>

class Canvas;

class Bezier : public QObject
{
    Q_OBJECT

    QList<QVector2D> m_list;

public:
    explicit Bezier(QObject *parent = 0);
    void setList(const QList<QVector2D> &list);
    void addControlPoint(const QVector2D& p);
    //int numberOfControlPoints();

    QList<QVector2D> getPolyLine(const int n = 10);
    void getPolyLine(Canvas *canvas, const int n = 10);
    QList<QVector2D> getPolyLine2(const int partes = 10);
    QList<QVector2D> getLines();

signals:
    
public slots:
    
};

#endif // BEZIER_H
